<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::simulation::SumReduce类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1simulation_1_1_sum_reduce.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1simulation_1_1_sum_reduce-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::simulation::SumReduce类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implements a parallel summation of float arrays using GLSL. The input array is provided as a float texture and the summation is performed over set number of levels, where each level halfs each dimension.  
 <a href="classpcl_1_1simulation_1_1_sum_reduce.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="sum__reduce_8h_source.html">sum_reduce.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a43469b2f2dae7c3531523c471f2cde9a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1_sum_reduce.html#a43469b2f2dae7c3531523c471f2cde9a">SumReduce</a> (int width, int height, int levels)</td></tr>
<tr class="memdesc:a43469b2f2dae7c3531523c471f2cde9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new summation object for an array of given size.  <a href="classpcl_1_1simulation_1_1_sum_reduce.html#a43469b2f2dae7c3531523c471f2cde9a">更多...</a><br /></td></tr>
<tr class="separator:a43469b2f2dae7c3531523c471f2cde9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3aa69e7fb9d3b7902215cec594a864b5"><td class="memItemLeft" align="right" valign="top"><a id="a3aa69e7fb9d3b7902215cec594a864b5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1_sum_reduce.html#a3aa69e7fb9d3b7902215cec594a864b5">~SumReduce</a> ()</td></tr>
<tr class="memdesc:a3aa69e7fb9d3b7902215cec594a864b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release any allocated resources. <br /></td></tr>
<tr class="separator:a3aa69e7fb9d3b7902215cec594a864b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1563d2a48fabc5d76ef49f86444630a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1simulation_1_1_sum_reduce.html#af1563d2a48fabc5d76ef49f86444630a">sum</a> (GLuint input_array, float *output_array)</td></tr>
<tr class="memdesc:af1563d2a48fabc5d76ef49f86444630a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reduce the array with summation over set number of levels.  <a href="classpcl_1_1simulation_1_1_sum_reduce.html#af1563d2a48fabc5d76ef49f86444630a">更多...</a><br /></td></tr>
<tr class="separator:af1563d2a48fabc5d76ef49f86444630a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a9acc826fb393d772a5857599277c2c6c"><td class="memItemLeft" align="right" valign="top"><a id="a9acc826fb393d772a5857599277c2c6c"></a>
GLuint&#160;</td><td class="memItemRight" valign="bottom"><b>fbo_</b></td></tr>
<tr class="separator:a9acc826fb393d772a5857599277c2c6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dd08bad00c27a55cce12f75f7dc9658"><td class="memItemLeft" align="right" valign="top"><a id="a6dd08bad00c27a55cce12f75f7dc9658"></a>
GLuint *&#160;</td><td class="memItemRight" valign="bottom"><b>arrays_</b></td></tr>
<tr class="separator:a6dd08bad00c27a55cce12f75f7dc9658"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4a6426e1c9219c06c7e9d0895ace94a"><td class="memItemLeft" align="right" valign="top"><a id="af4a6426e1c9219c06c7e9d0895ace94a"></a>
<a class="el" href="classpcl_1_1simulation_1_1_quad.html">Quad</a>&#160;</td><td class="memItemRight" valign="bottom"><b>quad_</b></td></tr>
<tr class="separator:af4a6426e1c9219c06c7e9d0895ace94a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8206f73a1bfdb217a591b4e5480d0f18"><td class="memItemLeft" align="right" valign="top"><a id="a8206f73a1bfdb217a591b4e5480d0f18"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>levels_</b></td></tr>
<tr class="separator:a8206f73a1bfdb217a591b4e5480d0f18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8c6e82b80c59ef677d5dd5e61bd2a84"><td class="memItemLeft" align="right" valign="top"><a id="ab8c6e82b80c59ef677d5dd5e61bd2a84"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>width_</b></td></tr>
<tr class="separator:ab8c6e82b80c59ef677d5dd5e61bd2a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b206b7ebbf83dfb4147849f3cf2f273"><td class="memItemLeft" align="right" valign="top"><a id="a4b206b7ebbf83dfb4147849f3cf2f273"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>height_</b></td></tr>
<tr class="separator:a4b206b7ebbf83dfb4147849f3cf2f273"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a766f83746daaa6e4b5ef802f28c2c3"><td class="memItemLeft" align="right" valign="top"><a id="a2a766f83746daaa6e4b5ef802f28c2c3"></a>
gllib::Program::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>sum_program_</b></td></tr>
<tr class="separator:a2a766f83746daaa6e4b5ef802f28c2c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Implements a parallel summation of float arrays using GLSL. The input array is provided as a float texture and the summation is performed over set number of levels, where each level halfs each dimension. </p>
<dl class="section author"><dt>作者</dt><dd>Hordur Johannsson </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a43469b2f2dae7c3531523c471f2cde9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43469b2f2dae7c3531523c471f2cde9a">&#9670;&nbsp;</a></span>SumReduce()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::simulation::SumReduce::SumReduce </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>levels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a new summation object for an array of given size. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">width[in]</td><td>the width of the input array. </td></tr>
    <tr><td class="paramname">width[in]</td><td>the height of the input array. </td></tr>
    <tr><td class="paramname">levels[in]</td><td>the number of levels to carry out the reduction. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="af1563d2a48fabc5d76ef49f86444630a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1563d2a48fabc5d76ef49f86444630a">&#9670;&nbsp;</a></span>sum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::simulation::SumReduce::sum </td>
          <td>(</td>
          <td class="paramtype">GLuint&#160;</td>
          <td class="paramname"><em>input_array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>output_array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reduce the array with summation over set number of levels. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input_array</td><td>name of the input texture. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">a</td><td>pointer to an array that can store the summation result. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>simulation/include/pcl/simulation/<a class="el" href="sum__reduce_8h_source.html">sum_reduce.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>simulation</b></li><li class="navelem"><a class="el" href="classpcl_1_1simulation_1_1_sum_reduce.html">SumReduce</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
